package com.haveajob.bill.dao;

import com.haveajob.bill.entity.Bill;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillMapper {

    int insertSelectiveBill(Bill record);

    int backMoneyInsertBill(Bill record);

    int deleteMoneyBill(Bill record);

    int addBill(Bill bill);

    List<Bill> selectUserBills(@Param("userId") int userId,@Param("startDate") String startDate,@Param("endDate") String endDate);

    List<Bill> selectEmployeeOrderBills(@Param("userId") int userId,@Param("startDate") String startDate,@Param("endDate") String endDate);

    Bill selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Bill record);

    Bill selectBillDeposit(Bill bill);

    int countTheDayOrder(String date);
}